package org.androidpn.mainapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class RegisterSuccessActivity extends Activity{
	private TextView textViewInfo=null;
	private TextView textViewBack=null;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.loginsuccess);
		textViewBack=(TextView)findViewById(R.id.textView2);
		textViewInfo=(TextView)findViewById(R.id.textView4);
		Intent intent=getIntent();
		String userNumber=intent.getStringExtra("userNumber");
		String userPassword=intent.getStringExtra("userPassword");
		textViewInfo.append(getString(R.string.login_user)+userNumber+"\n");
		textViewInfo.append(getString(R.string.login_password)+userPassword+"\n"+"\n");
		textViewInfo.append(getString(R.string.attention)+"\n");
		textViewInfo.append(getString(R.string.user_attention));
		textViewBack.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent=new Intent(RegisterSuccessActivity.this,LoginActivity.class);
				startActivity(intent);
				finish();
			}
		});
	}
}
